<?php
namespace Home\Controller;
use Think\Controller;
use \Home\Model\FoodsModel;
class FoodsController extends Controller {
    /**
     * 获取菜品列表
     */
    public function getFoodsList(){
      $Foods = new FoodsModel();
      $foodsList=$Foods->getAllByMid(1);

      foreach ($foodsList as $k=> $v) {
          $rs[$v['id']]=$v;
        }
      $this->ajaxReturn($rs);
    }
}
